﻿namespace USElections.NewsFeeds.Model
{
    using AgFx;

    /// <summary>
    /// RssFeedLoadContext class.
    /// </summary>
    public class RssFeedLoadContext : LoadContext
    {
        #region Constructor
        /// <summary>
        /// Initializes a new instance of the RssFeedLoadContext class.
        /// </summary>
        /// <param name="name">The name of the feed.</param>
        /// <param name="uri">The uri of the feed.</param>
        public RssFeedLoadContext(string name, string uri)
            : base(name)
        {
            this.Uri = uri;
        }
        #endregion

        #region Properties
        /// <summary>
        /// Gets the name of the feed.
        /// </summary>
        public string Name
        {
            get
            {
                return (string)this.Identity;
            }
        }

        /// <summary>
        /// Gets or sets the Uri of the feed.
        /// </summary>
        public string Uri
        {
            get;
            set;
        }
        #endregion
    }
}
